import ajax from './index'

// /代扣税记录表分页列表
export function taxPageList(data) {
  return ajax({
    url: "/backend/tax/pageList",
    method: "get",
    params: data
  });
}
// 更新代扣税记录表
export function taxUpdate(param) {
  return ajax({
    url: "/backend/tax/update",
    method: "post",
    data: param
  });
}
// 新增代扣税记录表
export function taxAdd(data) {
  return ajax({
    url: '/backend/tax/add',
    method: 'post',
    data: data
  });
}
// 详情
export function taxDetail(id) {
  return ajax({
    url: `/backend/tax/detail/${id}`,
    method: "get"
  });
}
// 删除代扣税记录表
export function taxDelete(ids) {
  return ajax({
    url: `/backend/tax/delete/${ids}`,
    method: "get"
  });
}
// 扣税明细记录导出

export function taxExport() {
  return ajax({
    url: "/backend/tax/export",
    method: "get"
  });
}

// 提现记录


export function withdrawList(data) {
  return ajax({
    url: "/backend/member/withdrawList",
    method: "get",
    params: data
  });
}
// 提现详情
export function withdrawDetails(id) {
  return ajax({
    url: `/backend/member/withdrawDetails/${id}`,
    method: "get"
  });
}
// 提现操作
export function withdrawOperate(data) {
  return ajax({
    url: `/backend/member/withdrawOperate`,
    method: "POST",
    data: data
  });
}
// 代扣税抵税申请记录表分页列表
export function taxDeductPageList(data) {
  return ajax({
    url: "/backend/taxDeduct/pageList",
    method: "get",
    params: data
  });
}

// 更新代扣税抵税申请记录表
export function taxDeductUpdate(data) {
  return ajax({
    url: '/backend/taxDeduct/update',
    method: 'post',
    data: data
  });
}
// 审核代扣税抵税申请记录表
export function taxDeductCheckTaxDeduct(data) {
  return ajax({
    url: '/backend/taxDeduct/checkTaxDeduct',
    method: 'post',
    data: data
  });
}
// 新增代扣税抵税申请记录表
export function taxDeductAdd(data) {
  return ajax({
    url: '/backend/taxDeduct/add',
    method: 'post',
    data: data
  });
}
// 详情
export function taxDeductDetail(id) {
  return ajax({
    url: `/backend/taxDeduct/detail/${id}`,
    method: "get",
    // params: data
  });
}
// 删除代扣税抵税申请记录表
export function taxDeductDelete(ids) {
  return ajax({
    url: `/backend/taxDeduct/delete/${ids}`,
    method: "get",
    // params: data
  });
}
// 扣税申请记录导出
export function taxDeductExport(data) {
  return ajax({
    url: `/backend/taxDeduct/export`,
    method: "get",
    params: data
  });
}

// 门店交易数据-小店交易记录
export function transactionDetail(data) {
  return ajax({
    url: `/backend/finance/shop/transactionDetail/list`,
    method: "POST",
    data: data
  });
}
// 导出明细
export function transactionDetailExport(data) {
  return ajax({
    url: `/backend/finance/shop/transactionDetail/export`,
    method: "POST",
    data: data
  });
}
// 门店交易数据-小店收入明细
// export function transactionDetail(data) {
//   return ajax({
//     url: `/backend/finance/shop/transactionDetail/list`,
//     method: "get",
//     params: data
//   });
// }

export function orderSettle(ids) {
  return ajax({
    url: `/backend/order/orderSettle`,
    method: "POST",
    data: data
  });
}
